<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        class User{
            constructor(name,sex){
                this.name =name
                this.sex=sex
            }
            jump(){
                console.log('跳')
                
            }
            say(){
                console.log(`我叫${this.name}`)
                console.log(`我是${this.sex}`)
                
            }
        }
        let lisi = new User('李四','男孩')
        lisi.say()
    </script>
</body>
</html>